package cn.tedu.costservice.dao.repository.impl;

import cn.tedu.costservice.dao.mapper.CostMapper;
import cn.tedu.costservice.dao.repository.CostRepository;
import cn.tedu.costservice.pojo.po.CostRulePO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class CostRepositoryImpl implements CostRepository {
    @Autowired
    private CostMapper costMapper;
    @Override
    public List<CostRulePO> getCostRuleByStationId(Long stationId) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("station_id",stationId);
        return costMapper.selectList(queryWrapper);

    }
}
